﻿using JaxDug.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace JaxDug.ViewModels
{
    public class SponsorViewModel : BaseViewModel
    {
        public Sponsor Sponsor { get; set; }
    }

    public class SponsorListViewModel : BaseViewModel
    {
        public List<Sponsor> SponsorList { get; set; }

        public List<Sponsor> RandomSponsorList
        {
            get
            {
                List<Sponsor> _sponsors = new List<Sponsor>();
                var shuffledcards = SponsorList.OrderBy(a => Guid.NewGuid());
                foreach (var item in shuffledcards)
                {
                    _sponsors.Add(item);
                }
                return _sponsors;
            }
        }
    }
}